package com.sctvcloud.longchang.ui.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ruihang.generalibrary.ui.adapter.BaseHolderAbsAdapter;
import com.ruihang.generalibrary.ui.util.OnItemInternalClick;
import com.ruihang.generalibrary.ui.widget.CustomFontTextView;
import com.sctvcloud.longchang.R;
import com.sctvcloud.longchang.beans.FProgram;
import com.sctvcloud.longchang.beans.ImageUr;
import com.sctvcloud.longchang.ui.adapter.holder.CommentHolder;
import com.sctvcloud.longchang.ui.adapter.holder.PicHolder;
import com.sctvcloud.longchang.ui.adapter.holder.ProgramBackHolder;
import com.sctvcloud.longchang.ui.util.IListShowData;

import java.util.List;

/**
 * Created by Administrator on 2017/7/13 0013.
 */

public class ProgramBackAdapter extends BaseHolderAbsAdapter<FProgram, ProgramBackHolder> {
    private ProgramBackHolder.OnProgramTitleClickListener programItemClickListener;

    public ProgramBackAdapter(Context context, List<FProgram> list) {
        super(context, list);
    }


    @Override
    public ProgramBackHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_look_back_title, parent,false);
        ProgramBackHolder holder = new ProgramBackHolder(context, view, programItemClickListener);
        holder.setInternalClick(this);
        return holder;
    }


    @Override
    public ProgramBackAdapter setItemInternalClick(OnItemInternalClick itemInternalClick) {
        super.setItemInternalClick(itemInternalClick);
        return this;
    }

    public void setProgramTitleClickListener(ProgramBackHolder.OnProgramTitleClickListener programItemClickListener) {
        this.programItemClickListener = programItemClickListener;
    }
}
